package com.cai.file.demo;

import java.io.File;

public class CreateDirDemo {
    public static void main(String[] args) {
        File file=new File("./demo");
        boolean success =  file.mkdir();
        System.out.println("目录是否创建成功："+success);

        File file1 = new File("./a/b");
        boolean success1 =  file1.mkdirs();
        System.out.println("多级目录创建是否成功："+success1);
    }
}
